jade.content.schema
Class CommunicativeActSchema

java.lang.Object
  |
  +--jade.content.schema.ObjectSchema
        |
        +--jade.content.schema.ContentElementSchema
              |
              +--jade.content.schema.GenericActionSchema
                    |
                    +--jade.content.schema.CommunicativeActSchema

public class CommunicativeActSchema
extends GenericActionSchema

Author:
Federico Bergenti - Universita` di Parma

Field Summary
static java.lang.String BASE_NAME
           
static java.lang.String RECEIVERS
           
static java.lang.String SENDER
           
 
Fields inherited from class jade.content.schema.GenericActionSchema
BASE_NAME
 
Fields inherited from class jade.content.schema.ContentElementSchema
BASE_NAME
 
Fields inherited from class jade.content.schema.ObjectSchema
MANDATORY, OPTIONAL
 
Constructor Summary
CommunicativeActSchema(java.lang.String name)
          Creates a new schema with a name.
 
Method Summary
 void add(java.lang.String name, ContentElementSchema elementSchema)
          Add a parameter to the schema.
 void add(java.lang.String name, ContentElementSchema elementSchema, int cardinality)
          Add a parameter to the schema.
static ContentElementSchema getBaseSchema()
          Gets the base schema of this schema.
 AbsObject newInstance()
          Creates a new instance.
 
Methods inherited from class jade.content.schema.ObjectSchema
addBaseSchema, addElement, addElement, getNames, getSchema, getTypeName, isAttribute, isMandatory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BASE_NAME

public static final java.lang.String BASE_NAME

SENDER

public static final java.lang.String SENDER

RECEIVERS

public static final java.lang.String RECEIVERS
Constructor Detail

CommunicativeActSchema

public CommunicativeActSchema(java.lang.String name)
Creates a new schema with a name.
Parameters:
name - the name of the schema.
Method Detail

add

public void add(java.lang.String name,
                ContentElementSchema elementSchema)
Add a parameter to the schema.
Parameters:
name - name of the paramter.
elementSchema - schema of the parameter.

add

public void add(java.lang.String name,
                ContentElementSchema elementSchema,
                int cardinality)
Add a parameter to the schema.
Parameters:
name - name of the paramter.
elementSchema - schema of the parameter.
cardinality - cardinality of the paramter, i.e., optional or mandatory

getBaseSchema

public static ContentElementSchema getBaseSchema()
Gets the base schema of this schema.
Returns:
the base schema.

newInstance

public AbsObject newInstance()
Creates a new instance.
Overrides:
newInstance in class GenericActionSchema
Returns:
teh new instance.